package org.chengn.definition;

/**
 * @Title: TreeNode
 * @Author ChengN
 * @Package org.chengn.definition
 * @Date 2023/12/4 0:30
 * @description: LeetCode树结构定义
 */
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;
    public TreeNode() {}
    public TreeNode(int val) { this.val = val; }
    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}